package cn.iocoder.yudao.module.wms.controller.admin.otherin.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import java.time.LocalDate;
import java.util.*;
import java.util.*;
import java.math.BigDecimal;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;
import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
import cn.iocoder.yudao.framework.excel.core.convert.DictConvert;

@Schema(description = "管理后台 - 通用入库单 Response VO")
@Data
@ExcelIgnoreUnannotated
public class OtherInRespVO {

    @Schema(description = "序号", requiredMode = Schema.RequiredMode.REQUIRED, example = "2715")
    @ExcelProperty("序号")
    private Long id;

    @Schema(description = "单据类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "29572")
    @ExcelProperty("单据类型")
    private Long docId;

    @Schema(description = "单据类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "29572")
    @ExcelProperty("单据类型")
    private String docName;

    @Schema(description = "单据日期", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("单据日期")
    private LocalDate docDate;

    @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("编号")
    private String code;

    @Schema(description = "交易日期")
    @ExcelProperty("交易日期")
    private LocalDate transactionDate;

    @Schema(description = "制单人", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("制单人")
    private Long operateUser;

    @Schema(description = "制单人", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("制单人")
    private String operateUserName;

    @Schema(description = "制单部门")
    @ExcelProperty("制单部门")
    private Long operateDept;

    @Schema(description = "制单部门")
    @ExcelProperty("制单部门")
    private String operateDeptName;

    @Schema(description = "制单日期")
    @ExcelProperty("制单日期")
    private LocalDate operateDate;

    @Schema(description = "审核人")
    @ExcelProperty("审核人")
    private Long approveUser;

    @Schema(description = "审核人")
    @ExcelProperty("审核人")
    private String approveUserName;

    @Schema(description = "审核日期")
    @ExcelProperty("审核日期")
    private LocalDate approveDate;

    @Schema(description = "业务合计数量")
    @ExcelProperty("业务合计数量")
    private BigDecimal businessSumQty;

    @Schema(description = "成本合计金额")
    @ExcelProperty("成本合计金额")
    private BigDecimal costSumAmt;

    @Schema(description = "审核状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @ExcelProperty(value = "审核状态", converter = DictConvert.class)
    @DictFormat("approve_status") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Boolean approveStatus;

    @Schema(description = "附件")
    @ExcelProperty("附件")
    private String annex;

    @Schema(description = "备注", example = "你说的对")
    @ExcelProperty("备注")
    private String remark;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

}